﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gnosis.Alexandria.Model.Commands
{
    public class DeleteTextBuilder
        : CommandBuilderBase
    {
        public DeleteTextBuilder(IIdentifiable record)
            : base(record)
        {
            if (record.Id > 0)
            {
                AppendFormat("DELETE FROM {0}", record.RecordName);
                AppendWhereClause(record.Id);
            }
        }
    }
}
